Upgrade all deps to using build scripts
authorAlex Crichton <alex@alexcrichton.com>
Thu, 6 Nov 2014 17:17:34 +0000 (09:17 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 11 Nov 2014 22:31:23 +0000 (14:31 -0800)
.travis.install.deps.sh
Cargo.lock
Cargo.toml
configure
src/etc/dl-snapshot.py
src/etc/print-new-snapshot.py
src/registry/Cargo.toml
src/snapshots.txt
tests/test_cargo_compile_custom_build.rs

index f9eeb15225920d1e6afff21ef71910a8ce548b15..c8396e39476ba94aedea350bf85c80c8f224563c 100755 (executable)
@@ -3,10 +3,8 @@ set -x
 if [ "${TRAVIS_OS_NAME}" = "osx" ] || [ "${PLATFORM}" = "mac" ]; then
     target=apple-darwin
 elif [ "${OS}" = "Windows_NT" ] || [ "${PLATFORM}" = "win" ]; then
-    target=pc-mingw32
     windows=1
-elif [ "${TRAVIS_OS_NAME}" = "linux" ] || [ "${PLATFORM}" = "linux" ] ||
-     [ "${TRAVIS_OS_NAME}" = "" ]; then
+else
     target=unknown-linux-gnu
 fi
 
index 2ebe653e8ddf6fc20cdf8a32510c03050c9ac82a..0ca8799008640bcbfb783593e9b382bea3700def 100644 (file)
@@ -2,10 +2,10 @@
 name = "cargo"
 version = "0.0.1-pre"
 dependencies = [
- "curl 0.0.1 (git+https://github.com/alexcrichton/curl-rust?ref=bundle)",
+ "curl 0.0.1 (git+https://github.com/alexcrichton/curl-rust?ref=build-cmd)",
  "docopt 0.6.8 (git+https://github.com/docopt/docopt.rs)",
  "flate2 0.0.1 (git+https://github.com/alexcrichton/flate2-rs)",
- "git2 0.0.1 (git+https://github.com/alexcrichton/git2-rs?ref=no-build-cmd)",
+ "git2 0.0.1 (git+https://github.com/alexcrichton/git2-rs)",
  "glob 0.0.1 (git+https://github.com/rust-lang/glob)",
  "hamcrest 0.1.0 (git+https://github.com/carllerche/hamcrest-rust.git)",
  "registry 0.0.1-pre",
@@ -18,18 +18,21 @@ dependencies = [
 [[package]]
 name = "curl"
 version = "0.0.1"
-source = "git+https://github.com/alexcrichton/curl-rust?ref=bundle#b595431adb3ff1ad55e3cff30ee8b0c05d9103a0"
+source = "git+https://github.com/alexcrichton/curl-rust?ref=build-cmd#c7a6c5123c67abc22c3b3517579974782a9dd273"
 dependencies = [
- "curl-sys 0.0.1 (git+https://github.com/alexcrichton/curl-rust?ref=bundle)",
- "link-config 0.0.1 (git+https://github.com/alexcrichton/link-config)",
- "openssl-static-sys 0.0.1 (git+https://github.com/alexcrichton/openssl-static-sys)",
+ "curl-sys 0.0.1 (git+https://github.com/alexcrichton/curl-rust?ref=build-cmd)",
  "url 0.1.0 (git+https://github.com/servo/rust-url)",
 ]
 
 [[package]]
 name = "curl-sys"
 version = "0.0.1"
-source = "git+https://github.com/alexcrichton/curl-rust?ref=bundle#b595431adb3ff1ad55e3cff30ee8b0c05d9103a0"
+source = "git+https://github.com/alexcrichton/curl-rust?ref=build-cmd#c7a6c5123c67abc22c3b3517579974782a9dd273"
+dependencies = [
+ "libz-sys 0.0.1 (git+https://github.com/alexcrichton/libz-sys)",
+ "openssl-sys 0.0.1 (git+https://github.com/alexcrichton/openssl-sys)",
+ "pkg-config 0.0.1 (git+https://github.com/alexcrichton/pkg-config-rs)",
+]
 
 [[package]]
 name = "docopt"
@@ -39,7 +42,7 @@ source = "git+https://github.com/docopt/docopt.rs#0b184b15ed5ea7e3c180b088e8f99b
 [[package]]
 name = "encoding"
 version = "0.2.0"
-source = "git+https://github.com/lifthrasiir/rust-encoding#841527086854d6958cd1008dabd2b69865c36267"
+source = "git+https://github.com/lifthrasiir/rust-encoding#a06637cc6d0da37c12c68661e2ee9ca1999764a4"
 dependencies = [
  "encoding-index-japanese 1.0.20140915 (git+https://github.com/lifthrasiir/rust-encoding)",
  "encoding-index-korean 1.0.20140915 (git+https://github.com/lifthrasiir/rust-encoding)",
@@ -51,39 +54,47 @@ dependencies = [
 [[package]]
 name = "encoding-index-japanese"
 version = "1.0.20140915"
-source = "git+https://github.com/lifthrasiir/rust-encoding#841527086854d6958cd1008dabd2b69865c36267"
+source = "git+https://github.com/lifthrasiir/rust-encoding#a06637cc6d0da37c12c68661e2ee9ca1999764a4"
 
 [[package]]
 name = "encoding-index-korean"
 version = "1.0.20140915"
-source = "git+https://github.com/lifthrasiir/rust-encoding#841527086854d6958cd1008dabd2b69865c36267"
+source = "git+https://github.com/lifthrasiir/rust-encoding#a06637cc6d0da37c12c68661e2ee9ca1999764a4"
 
 [[package]]
 name = "encoding-index-simpchinese"
 version = "1.0.20140915"
-source = "git+https://github.com/lifthrasiir/rust-encoding#841527086854d6958cd1008dabd2b69865c36267"
+source = "git+https://github.com/lifthrasiir/rust-encoding#a06637cc6d0da37c12c68661e2ee9ca1999764a4"
 
 [[package]]
 name = "encoding-index-singlebyte"
 version = "1.0.20140915"
-source = "git+https://github.com/lifthrasiir/rust-encoding#841527086854d6958cd1008dabd2b69865c36267"
+source = "git+https://github.com/lifthrasiir/rust-encoding#a06637cc6d0da37c12c68661e2ee9ca1999764a4"
 
 [[package]]
 name = "encoding-index-tradchinese"
 version = "1.0.20140915"
-source = "git+https://github.com/lifthrasiir/rust-encoding#841527086854d6958cd1008dabd2b69865c36267"
+source = "git+https://github.com/lifthrasiir/rust-encoding#a06637cc6d0da37c12c68661e2ee9ca1999764a4"
 
 [[package]]
 name = "flate2"
 version = "0.0.1"
-source = "git+https://github.com/alexcrichton/flate2-rs#31d9253355ba837cd62487b8766bf2be89f334a3"
+source = "git+https://github.com/alexcrichton/flate2-rs#fc04214981c39633eb3859bd28389fc448d0e9fc"
+dependencies = [
+ "miniz-sys 0.0.1 (git+https://github.com/alexcrichton/flate2-rs)",
+]
+
+[[package]]
+name = "gcc"
+version = "0.0.1"
+source = "git+https://github.com/alexcrichton/gcc-rs#f23b4ba15348508b9ac557fc7eed2733f65bc1ee"
 
 [[package]]
 name = "git2"
 version = "0.0.1"
-source = "git+https://github.com/alexcrichton/git2-rs?ref=no-build-cmd#b7a84b817bc62df62e4449b7d78aa3887bd3b4c7"
+source = "git+https://github.com/alexcrichton/git2-rs#847a4902f3e0971c394ac3f35995e49a774b275a"
 dependencies = [
- "libgit2 0.0.1 (git+https://github.com/alexcrichton/git2-rs?ref=no-build-cmd)",
+ "libgit2-sys 0.0.1 (git+https://github.com/alexcrichton/git2-rs)",
  "url 0.1.0 (git+https://github.com/servo/rust-url)",
 ]
 
@@ -98,35 +109,59 @@ version = "0.1.0"
 source = "git+https://github.com/carllerche/hamcrest-rust.git#998036d000095f72c8bc86f2c412f6432f7ccc3b"
 
 [[package]]
-name = "libgit2"
+name = "libgit2-sys"
 version = "0.0.1"
-source = "git+https://github.com/alexcrichton/git2-rs?ref=no-build-cmd#b7a84b817bc62df62e4449b7d78aa3887bd3b4c7"
+source = "git+https://github.com/alexcrichton/git2-rs#847a4902f3e0971c394ac3f35995e49a774b275a"
 dependencies = [
- "libssh2-static-sys 0.0.1 (git+https://github.com/alexcrichton/libssh2-static-sys)",
- "link-config 0.0.1 (git+https://github.com/alexcrichton/link-config)",
- "openssl-static-sys 0.0.1 (git+https://github.com/alexcrichton/openssl-static-sys)",
+ "libssh2-sys 0.0.1 (git+https://github.com/alexcrichton/ssh2-rs)",
+ "openssl-sys 0.0.1 (git+https://github.com/alexcrichton/openssl-sys)",
+ "pkg-config 0.0.1 (git+https://github.com/alexcrichton/pkg-config-rs)",
 ]
 
 [[package]]
-name = "libssh2-static-sys"
+name = "libssh2-sys"
 version = "0.0.1"
-source = "git+https://github.com/alexcrichton/libssh2-static-sys#c0dc19bd7a9096b6c79911f4135cd4fb79962127"
+source = "git+https://github.com/alexcrichton/ssh2-rs#27d760680cf7b756298c8cb61fabe3aaefe0e84a"
+dependencies = [
+ "libz-sys 0.0.1 (git+https://github.com/alexcrichton/libz-sys)",
+ "openssl-sys 0.0.1 (git+https://github.com/alexcrichton/openssl-sys)",
+ "pkg-config 0.0.1 (git+https://github.com/alexcrichton/pkg-config-rs)",
+]
 
 [[package]]
-name = "link-config"
+name = "libz-sys"
 version = "0.0.1"
-source = "git+https://github.com/alexcrichton/link-config#7c56ef12c8a49bedb0357e2a50af9ba79bf0ae1b"
+source = "git+https://github.com/alexcrichton/libz-sys#37926b786b09e013e5fd64cc278b3df1b49c4fbe"
+dependencies = [
+ "pkg-config 0.0.1 (git+https://github.com/alexcrichton/pkg-config-rs)",
+]
+
+[[package]]
+name = "miniz-sys"
+version = "0.0.1"
+source = "git+https://github.com/alexcrichton/flate2-rs#fc04214981c39633eb3859bd28389fc448d0e9fc"
+dependencies = [
+ "gcc 0.0.1 (git+https://github.com/alexcrichton/gcc-rs)",
+]
+
+[[package]]
+name = "openssl-sys"
+version = "0.0.1"
+source = "git+https://github.com/alexcrichton/openssl-sys#d66fe8400ab3cbb79ed405e26ae19c0d0cc20931"
+dependencies = [
+ "pkg-config 0.0.1 (git+https://github.com/alexcrichton/pkg-config-rs)",
+]
 
 [[package]]
-name = "openssl-static-sys"
+name = "pkg-config"
 version = "0.0.1"
-source = "git+https://github.com/alexcrichton/openssl-static-sys#2e1c50a7f35ef52ce38dbd405a175b6dccc0ebad"
+source = "git+https://github.com/alexcrichton/pkg-config-rs#d24a08d87d63df8dc9526c503944415b86719220"
 
 [[package]]
 name = "registry"
 version = "0.0.1-pre"
 dependencies = [
- "curl 0.0.1 (git+https://github.com/alexcrichton/curl-rust?ref=bundle)",
+ "curl 0.0.1 (git+https://github.com/alexcrichton/curl-rust?ref=build-cmd)",
 ]
 
 [[package]]
@@ -147,7 +182,7 @@ source = "git+https://github.com/alexcrichton/toml-rs#ac6f3b27e03e7a5938fd4cae5f
 [[package]]
 name = "url"
 version = "0.1.0"
-source = "git+https://github.com/servo/rust-url#cec3c32168ce4233e179f22ef50215b3a9c34342"
+source = "git+https://github.com/servo/rust-url#8a61b7654ab5378b488225a1d8a9cbbbcbd38894"
 dependencies = [
  "encoding 0.2.0 (git+https://github.com/lifthrasiir/rust-encoding)",
 ]
index cb1bddbe0b14eeebd7a8fc4f7c50313cc78ba3f5..806cd9b4cf3ee74e5b4721717ba87d1b7be77024 100644 (file)
@@ -25,7 +25,7 @@ git = "https://github.com/rust-lang/semver"
 
 [dependencies.curl]
 git = "https://github.com/alexcrichton/curl-rust"
-branch = "bundle"
+branch = "build-cmd"
 
 [dependencies.tar]
 git = "https://github.com/alexcrichton/tar-rs"
@@ -35,7 +35,6 @@ git = "https://github.com/alexcrichton/flate2-rs"
 
 [dependencies.git2]
 git = "https://github.com/alexcrichton/git2-rs"
-branch = "no-build-cmd"
 
 [dependencies.glob]
 git = "https://github.com/rust-lang/glob"
index e825ba7e78d5a5be7b74328e0737bdc201f914a7..69080b53a0a225101452f80df10638e84ed47926 100755 (executable)
--- a/configure
+++ b/configure
@@ -367,6 +367,23 @@ if [ "$CFG_SRC_DIR" != "$CFG_BUILD_DIR" ]; then
     err "cargo does not currently support an out-of-tree build dir"
 fi
 
+if [ ! -z "$CFG_ENABLE_NIGHTLY" ]; then
+    if [ ! -f .cargo/config ]; then
+        mkdir -p .cargo
+        cat > .cargo/config <<-EOF
+[target.x86_64-unknown-linux-gnu.openssl]
+rustc-flags = "-l ssl:static -l crypto:static -l dl -L /home/rustbuild/root64/lib"
+root = "/home/rustbuild/root64"
+include = "/home/rustbuild/root64/include"
+
+[target.i686-unknown-linux-gnu.openssl]
+rustc-flags = "-l ssl:static -l crypto:static -l dl -L /home/rustbuild/root32/lib"
+root = "/home/rustbuild/root32"
+include = "/home/rustbuild/root32/include"
+EOF
+    fi
+fi
+
 step_msg "writing configuration"
 
 putvar CFG_SRC_DIR
index a09ce2375e6a1a7483bb098e99b687480611e775..64329ac9c9ed54410a6ca0b7a63440f32d990c1d 100644 (file)
@@ -27,10 +27,8 @@ elif triple == 'i686-apple-darwin':
 elif triple == 'x86_64-apple-darwin':
     me = mac64
 elif triple == 'i686-pc-windows-gnu':
-    triple = 'i686-w64-mingw32'
     me = win32
 elif triple == 'x86_64-pc-windows-gnu':
-    triple = 'x86_64-w64-mingw32'
     me = win64
 else:
     raise Exception("no snapshot for the triple: " + triple)
index 70da2db3f7d43fefcd3fb86120a0e2f26efee5a8..8c7d0e898b70d35633eb95b5ea8aca1009429fc7 100644 (file)
@@ -16,8 +16,8 @@ snaps = {
     'macos-x86_64': 'x86_64-apple-darwin',
     'linux-i386': 'i686-unknown-linux-gnu',
     'linux-x86_64': 'x86_64-unknown-linux-gnu',
-    'winnt-i386': 'i686-w64-mingw32',
-    'winnt-x86_64': 'x86_64-w64-mingw32',
+    'winnt-i386': 'i686-pc-windows-gnu',
+    'winnt-x86_64': 'x86_64-pc-windows-gnu',
 }
 
 for platform in sorted(snaps):
index 695caa0f270e81fc97815d5abc4bf1df2b48fdba..3a7755ecda48efd74d86dbbd972538e23434ff42 100644 (file)
@@ -9,4 +9,4 @@ path = "lib.rs"
 
 [dependencies.curl]
 git = "https://github.com/alexcrichton/curl-rust"
-branch = "bundle"
+branch = "build-cmd"
index 1d56ad85677a0ec19cef2014010040697203b485..304f5c30673cbd8f010852906a404d79605fd4cf 100644 (file)
@@ -1,3 +1,19 @@
+2014-11-11
+  linux-i386 5cbf3346309d303cb954c363097fc4abedf50610
+  linux-x86_64 8c1594e227eca6f23ba02daa5f3cd6150ac88907
+  macos-i386 f338835a58cc5357ed092a23ba0ddbf2624dfacd
+  macos-x86_64 b2d03a6a9422c42b7f5ba008c8851ddc89ae693c
+  winnt-i386 50b851d94181375f0c7a00aacb7d8d63960eddc7
+  winnt-x86_64 aa12a1cb80a665f53066a15774360d686b3e5968
+
+2014-11-07
+  linux-i386 f65ae2b9d94477fec79e444ea489ff98a456e033
+  linux-x86_64 1a7f663d8f4e2109240a20d8e63c958e0557d883
+  macos-i386 9d82a00bd396c99cc27693864da2364d0394e843
+  macos-x86_64 1dc297d8e149384a76dfb7efc7869b82fe663b92
+  winnt-i386 d9f87d83c6cbabd7a4794498e4c3a4e94df0740a
+  winnt-x86_64 74284401082e1b5aff14a72e2152ed5cb55812cf
+
 2014-10-28
   linux-i386 15fb3dd24140911ba707d8b4b1dd6826732a3ad6
   linux-x86_64 a924d82f5dc987efda6303d3e2c1aeb8ade34faa
index cd441d049623f7edec5be661288125bf6c822612..2aceee87aa9ed7c9755bfd7d39d89d8c753394b6 100644 (file)
@@ -288,13 +288,13 @@ test!(overrides_and_links {
     assert_that(p.cargo_process("build").arg("-v"),
                 execs().with_status(0)
                        .with_stdout(format!("\
-{compiling} foo v0.5.0 (file://[..])
-{running} `rustc build.rs [..]`
-{compiling} a v0.5.0 (file://[..])
-{running} `rustc [..] --crate-name a [..]`
-{running} `[..]build-script-build[..]`
+[..]
+[..]
+[..]
+[..]
+[..]
 {running} `rustc [..] --crate-name foo [..] -L foo -L bar[..]`
-", compiling = COMPILING, running = RUNNING).as_slice()));
+", running = RUNNING).as_slice()));
 })
 
 test!(unused_overrides {